from rest_framework import serializers
from app import models


class AuthorSer(serializers.ModelSerializer):
    class Meta:
        model = models.Author
        fields = '__all__'


class BooksSer(serializers.ModelSerializer):
    class Meta:
        model = models.Books
        fields = '__all__'
